package com.bt.att.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * ChartSeries.
 *
 * @author Zakir Magdum
 */
public class ChartSeries {
    private String seriesName;
    private List<ChartPoint> points = new ArrayList<ChartPoint>();
    private String axisTitle;

    public ChartSeries(String name, List<ChartPoint> points) {
        this.seriesName = this.axisTitle = name;
        this.points = points;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public List<ChartPoint> getPoints() {
        return points;
    }

    public void setPoints(List<ChartPoint> points) {
        this.points = points;
    }

    public String getAxisTitle() {
        return axisTitle;
    }

    public void setAxisTitle(String axisTitle) {
        this.axisTitle = axisTitle;
    }

    public void addChartPoint(Object name, double value) {
        points.add(new ChartPoint(name, value));
    }
}
